package com.pets.springboot_petshop.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/15 下午2:33 周二
 * @Description: 订单详情实体类
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class Orderproduct implements Serializable {
    private int id;
    private int order_id; // 订单ID
    private int product_id; // 产品ID
    private int quantity; // 数量
    private String name;
    private String img;
    private LocalDateTime create_time;
    private LocalDateTime update_time;
    private BigDecimal discount_price; // 折扣价
    private BigDecimal original_price; // 原价
}
